package com.jsh.erp.exception;

/**
 * 〈自定义内部异常〉
 * @author Administrator
 * @since 1.0.0
 */
public class ResMsgException extends RuntimeException {

    private static final long serialVersionUID = -3236227857487083363L;
    private String code;
    private String msg;

    public ResMsgException(String resultCode, String errorMessage) {
        super(errorMessage);
            
        code = resultCode;
        msg = errorMessage;
    }

    public ResMsgException(String errorMessage) {
        super(errorMessage);

        code = "9999";
        msg = errorMessage;
    }

    public String getCode() {
        return code;
    }
    
    public String getMsg() {
        return msg;
    }
}
